package com.armrest.screen

import com.armrest.screen.provider.*

class HomeAdapter : BaseAdapterProvider<HomeMenuModel>(null) {

   init {
      addItemProvider(SgravityModelProvider(itemViewTypes=1))
      addItemProvider(WindowModelProvider(itemViewTypes=2))
      addItemProvider(MusicModelProvider(itemViewTypes=3))
      addItemProvider(VolumeProvider(itemViewTypes=4))
      addItemProvider(ThermometerProvider(itemViewTypes=5))
      addItemProvider(BlastProvider(itemViewTypes=6))
   }

    override fun getItemType(data: List<HomeMenuModel>, position: Int): Int {
        return data.getOrThrow(position)?.mType ?: -1
    }
}